# Contributor: TimotheeLF <timotheel-f@protonmail.com>
# Maintainer: TimotheeLF <timotheel-f@protonmail.com>
pkgname=callaudiod
pkgver=0.1.4
pkgrel=0
pkgdesc="Call audio routing daemon"
url="https://gitlab.com/mobian1/callaudiod"
arch="all"
license="LGPL-3.0-or-later"
makedepends="meson alsa-lib-dev glib-dev pulseaudio-dev"
source="https://gitlab.com/mobian1/callaudiod/-/archive/$pkgver/callaudiod-$pkgver.tar.gz
	exclude-hdmi-audio-devices.patch
	"
subpackages="$pkgname-dev $pkgname-libs"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
2f7503b5b576694dc612613af93900950780d6d2b27b0aeaca4ed767538b40a259c932eed346e17f7743b8c5a19df14840ffbae4b9b0d750533274d7e63017cf  callaudiod-0.1.4.tar.gz
8a51213445c676c762ff9c389e00633fe9ce48d430f506eb16caedaa6817b847c6aca86ef646e6315843764699c70b6defcf00bfc0214b2415a53c5cff57b4f3  exclude-hdmi-audio-devices.patch
"
